/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */

import React, {Component} from 'react';
import {
    View,
} from 'react-native';

import {Navigator} from 'react-native-deprecated-custom-components';
import HomePage from "./js/pages/HomePage";

type Props = {};
export default class App extends Component<Props> {
    constructor(props) {
        super(props);
        this.state = {
            selectedTab: 'home',
        }
    }

    renderScene(route, navigator) {
        let Component = route.component;
        return (<Component navigator={navigator} {...route.params}/>)
    }

    render() {
        return (
            <Navigator
                initialRoute={{component:HomePage}}
                renderScene={(route, navigator) => this.renderScene(route, navigator)}
            />
        );
    }
}
